package com.dz51.core.validate.util;

import javax.servlet.http.HttpServletRequest;

import com.dz51.core.validate.vo.ValidateResult;

public class ValidateResultBulider {
    public static ValidateResult createSuccessResult(HttpServletRequest request){
        return new ValidateResult(request, true, "");
    }
    
    public static ValidateResult createFailResult(HttpServletRequest request, String errorMsg, int code){
        return new ValidateResult(request, false, errorMsg, code);
    }
    
    public static ValidateResult createNoReasonFailResult(HttpServletRequest request){
        return new ValidateResult(request, false, "");
    }
}  
  
